﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Liang.Util;
using Liang.Util.Task;

namespace LiangNetService
{
    public class TaskService : ITask
    {
        /// <summary>
        /// 开始服务
        /// </summary>
        protected override void OnStart(params object[] Params)
        {
            LogHelper.WriteLog(typeof(TaskService), Params.ToString(), 2);
        }

        protected override void OnStop()
        {
            LogHelper.WriteLog(typeof(TaskService), "停止运行服务！", 2);
        }

        protected override void OnThrowException(Exception ex)
        {
            LogHelper.WriteLog(typeof(TaskService), "服务出现异常！", 2);
        }

    }
}
